package com.sky.dto;

import cn.hutool.core.date.DatePattern;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

// 统计营业额的数据模型
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderQuotaAggeDTO implements Serializable {
    // 订单日期 order_time,amount
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private LocalDate orderTime;
    // 订单金额
    private BigDecimal amount;
}
